package com.kly;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;



@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ImportResource({
        "classpath*:app-redis.xml",
        "classpath:spring-datasource.xml",
        "classpath:dubbo-provider.xml",
        "classpath:dubbo-consumer.xml",
        "classpath:mybatis-config.xml",
})
@ComponentScan(basePackages = {
        "com.kly",
        "com.fqgj.common"
})
@NacosPropertySource(dataId = "sc-user", autoRefreshed = true)
@EnableScheduling
public class UserApplication {


    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class);


    }
}
